package com.zhiyou100.crm.pojo;

import com.mysql.cj.xdevapi.TableImpl;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
public class User {
    private Integer user_id;
    private String username;
    private String password;
    private Integer is_admin;
    private Integer department_id;
    private Boolean is_system;
    private Integer role_id;
    private Boolean is_male;
    private String mobile;
    private String address;
    private Integer age;
    private String tel;
    private String id_num;
    private String email;
    private String qq;
    private String hobby;
    private Integer education;
    private String card_num;
    private String nation;
    private Integer marry;
    private Integer status;
    private String remark;
    private Timestamp create_time;
    private Integer creater;
    private Timestamp update_time;
    private Integer updater;
    private String department_name;
    private String role_name;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public User(String username, String address) {
        this.username = username;
        this.address = address;
    }

    public User(String username, String password, Integer department_id, Integer role_id, Boolean is_male, String mobile, String address, Integer age, String tel, String id_num, String email, String qq, String hobby, Integer education, String card_num, String nation, Integer marry, String remark, Timestamp create_time) {
        this.username = username;
        this.password = password;
        this.department_id = department_id;
        this.role_id = role_id;
        this.is_male = is_male;
        this.mobile = mobile;
        this.address = address;
        this.age = age;
        this.tel = tel;
        this.id_num = id_num;
        this.email = email;
        this.qq = qq;
        this.hobby = hobby;
        this.education = education;
        this.card_num = card_num;
        this.nation = nation;
        this.marry = marry;
        this.remark = remark;
        this.create_time=create_time;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", is_admin=" + is_admin +
                ", department_id=" + department_id +
                ", is_system=" + is_system +
                ", role_id=" + role_id +
                ", is_male=" + is_male +
                ", mobile='" + mobile + '\'' +
                ", address='" + address + '\'' +
                ", age=" + age +
                ", tel='" + tel + '\'' +
                ", id_num='" + id_num + '\'' +
                ", email='" + email + '\'' +
                ", qq='" + qq + '\'' +
                ", hobby='" + hobby + '\'' +
                ", education=" + education +
                ", card_num='" + card_num + '\'' +
                ", nation='" + nation + '\'' +
                ", marry=" + marry +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", create_time=" + create_time +
                ", creater=" + creater +
                ", update_time=" + update_time +
                ", updater=" + updater +
                ", department_name='" + department_name + '\'' +
                ", role_name='" + role_name + '\'' +
                '}';
    }

    public User() {
    }

    public User(Integer user_id, String password, String mobile, Boolean is_male, String tel) {
        this.user_id = user_id;
        this.password = password;
        this.mobile = mobile;
        this.is_male=is_male;
        this.tel=tel;
    }

    public User(Integer department_id, String mobile, String address, String tel, String id_num, String email) {
        this.department_id = department_id;
        this.mobile = mobile;
        this.address = address;
        this.tel = tel;
        this.id_num = id_num;
        this.email = email;
    }

    public User(Integer user_id, String username, String mobile, String email, Timestamp update_time, String department_name, String role_name) {
        this.user_id = user_id;
        this.username = username;
        this.mobile = mobile;
        this.email = email;
        this.update_time = update_time;
        this.department_name = department_name;
        this.role_name = role_name;
    }

    public User(String username, String password, Integer department_id, Integer role_id, Boolean is_male, String mobile, String address, Integer age, String tel, String id_num, String email) {
        this.username = username;
        this.password = password;
        this.department_id = department_id;
        this.role_id = role_id;
        this.is_male = is_male;
        this.mobile = mobile;
        this.address = address;
        this.age = age;
        this.tel = tel;
        this.id_num = id_num;
        this.email = email;
    }

    public Integer getUpdater() {
        return updater;
    }

    public void setUpdater(Integer updater) {
        this.updater = updater;
    }

    public String getDepartment_name() {
        return department_name;
    }

    public void setDepartment_name(String department_name) {
        this.department_name = department_name;
    }

    public String getRole_name() {
        return role_name;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }



    public User(Integer user_id, String username, String password) {
        this.user_id = user_id;
        this.username = username;
        this.password = password;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIs_admin() {
        return is_admin;
    }

    public void setIs_admin(Integer is_admin) {
        this.is_admin = is_admin;
    }

    public Boolean getIs_system() {
        return is_system;
    }

    public void setIs_system(Boolean is_system) {
        this.is_system = is_system;
    }

    public Integer getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(Integer department_id) {
        this.department_id = department_id;
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public Boolean getIs_male() {
        return is_male;
    }

    public void setIs_male(Boolean is_male) {
        this.is_male = is_male;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getId_num() {
        return id_num;
    }

    public void setId_num(String id_num) {
        this.id_num = id_num;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hoddy) {
        this.hobby = hobby;
    }

    public Integer getEducation() {
        return education;
    }

    public void setEducation(Integer education) {
        this.education = education;
    }

    public String getCard_num() {
        return card_num;
    }

    public void setCard_num(String card_num) {
        this.card_num = card_num;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public Integer getMarry() {
        return marry;
    }

    public void setMarry(Integer marry) {
        this.marry = marry;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Timestamp getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Timestamp create_time) {
        this.create_time = create_time;
    }

    public Integer getCreater() {
        return creater;
    }

    public void setCreater(Integer creater) {
        this.creater = creater;
    }

    public Timestamp getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Timestamp update_time) {
        this.update_time = update_time;
    }

}
